var mongoose = require("mongoose");

var db = mongoose.createConnection('mongodb://127.0.0.1:27017/manage');     // 连接数据库

db.once('open',function(callback){
    console.log("数据库连接成功");
}); 

module.exports = db;